package com.dapeis.api.controller.collocation;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.io.filefilter.FalseFileFilter;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.JsonElement;

/**
 * @author 作者 E-mail: hzyuanyong@126.com
 * @version 创建时间：2017年5月15日 下午3:04:50 类说明
 */
public interface ITaskController {

    /**
     *  抢单列表
     * @param currentPage
     * @param request
     * @return
     */
    @RequestMapping(value = "/list")
    public @ResponseBody JsonElement taskList(
	    @RequestParam(required = false) Integer curretPager,
	    HttpServletRequest request);

    /**
     * 抢单详情
     * 
     * @param orderId
     * @param request
     * @return
     */
    @RequestMapping(value = "/detail")
    public @ResponseBody JsonElement taskDetail(@RequestParam Long orderId,
	    HttpServletRequest request);

    /**
     * 抢单
     * 
     * @param orderId
     * @param request
     * @return
     */
    @RequestMapping(value = "/doTask",method = RequestMethod.POST)
    public @ResponseBody JsonElement task(@RequestParam Long orderId,
	    HttpServletRequest request);
    
    /**
     * 服务完成
     * @param orderId
     * @return
     */
    @RequestMapping(value = "/finishService",method = RequestMethod.POST)
    public @ResponseBody JsonElement finishService(@RequestParam Long orderId);
}
